<?php

// +----------------------------------------------------------------------
// |ZBPHP[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2019 http://www.benbenwangluo.com
// +----------------------------------------------------------------------
// | Author 似水星辰 [ 2630481389@qq.com ]
// +----------------------------------------------------------------------
// | 中犇软件 技术六部 出品
// +----------------------------------------------------------------------
namespace app\customer\validate;

use think\Validate;

/**
 * 自动回复
 * @author 晓风<215628355@qq.com>
 * @date 2021-5-27 16:36:26
 */
class Reply extends Validate {

    //定义验证规则
    protected $rule = [
       'problem|问题' => ['require',"unique"=>[\app\customer\model\Reply::class,"problem",null,"id"],"max"=>100],
       'answer|答案' => ['require',"max"=>200],
       'url|链接' => ["max"=>100],
       'store_id|门店ID' => ["integer"],
    ];
    //定义验证提示
    protected $message = [
        "problem.unique"=>"问题已存在"
    ];
    //定义验证场景
    protected $scene = [
    ];

}
